package com.abiao.shop.redis;

/**
 * @Description: GoodsKey 商品key
 * @Author: AB
 * @Date: 2021-07-20
 * @Version:v1.0
 */
public class GoodsKey extends BasePrefix{
    public static final int TOKEN_EXPIRE = 60;  //默认过期时间1分钟
    public GoodsKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }
    public GoodsKey(String prefix) {
        super(prefix);
    }
    public static GoodsKey getById = new GoodsKey(TOKEN_EXPIRE,"id");
    public static GoodsKey getDiscountStock = new GoodsKey(0,"stock");
}
